package vista;

import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javabean.JPanelImagen;
import javax.swing.ImageIcon;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class vNivel extends javax.swing.JFrame {

	private JPanelImagen panfondo;
	private JButton btnbasico;
	private JButton btnpuntuancion;
	private JButton btnatras;
	private JLabel lblpelotas3;
	private JLabel lblintentos3;
	private JButton btndificil;
	private JLabel lblpelotas2;
	private JLabel lblintentos2;
	private JButton btnintermedio;
	private JLabel lblpelotas1;
	private JLabel lblintentos1;
	
	public vNivel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				panfondo = new JPanelImagen();
				getContentPane().add(panfondo, BorderLayout.CENTER);
				panfondo.setRutaImagen("/imagenes/niveles2.jpg");
				panfondo.setLayout(null);
				panfondo.setPreferredSize(new java.awt.Dimension(594, 320));
				this.setPreferredSize(new java.awt.Dimension(594, 403));
				//this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("imagenes/images (6).jpg")).getImage());
				{
					btnbasico = new JButton();
					panfondo.add(btnbasico);
					btnbasico.setText("Basico");
					btnbasico.setBounds(76, 102, 95, 38);
					btnbasico.setForeground(new java.awt.Color(128,64,0));
					btnbasico.setFont(new java.awt.Font("Segoe UI",1,12));
				}
				{
					lblintentos1 = new JLabel();
					panfondo.add(lblintentos1);
					lblintentos1.setText("Intentos: 12");
					lblintentos1.setBounds(76, 150, 86, 22);
					lblintentos1.setForeground(new java.awt.Color(128,64,0));
					lblintentos1.setFont(new java.awt.Font("Segoe UI",1,14));
				}
				{
					lblpelotas1 = new JLabel();
					panfondo.add(lblpelotas1);
					lblpelotas1.setText("Pelotas: 4");
					lblpelotas1.setBounds(76, 178, 86, 16);
					lblpelotas1.setForeground(new java.awt.Color(128,64,0));
					lblpelotas1.setFont(new java.awt.Font("Segoe UI",1,14));
				}
				{
					btnintermedio = new JButton();
					panfondo.add(btnintermedio);
					btnintermedio.setText("Intermedio");
					btnintermedio.setBounds(241, 126, 103, 43);
					btnintermedio.setForeground(new java.awt.Color(128,64,0));
					btnintermedio.setFont(new java.awt.Font("Segoe UI",1,12));
				}
				{
					lblintentos2 = new JLabel();
					panfondo.add(lblintentos2);
					lblintentos2.setText("Intentos: 13");
					lblintentos2.setBounds(241, 180, 103, 25);
					lblintentos2.setForeground(new java.awt.Color(128,64,0));
					lblintentos2.setFont(new java.awt.Font("Segoe UI",1,16));
				}
				{
					lblpelotas2 = new JLabel();
					panfondo.add(lblpelotas2);
					lblpelotas2.setText("Pelotas: 5");
					lblpelotas2.setBounds(247, 217, 82, 21);
					lblpelotas2.setForeground(new java.awt.Color(128,64,0));
					lblpelotas2.setFont(new java.awt.Font("Segoe UI",1,16));
				}
				{
					btndificil = new JButton();
					panfondo.add(btndificil);
					btndificil.setText("Dificil");
					btndificil.setBounds(441, 100, 87, 41);
					btndificil.setForeground(new java.awt.Color(128,64,0));
					btndificil.setFont(new java.awt.Font("Segoe UI",1,12));
				}
				{
					lblintentos3 = new JLabel();
					panfondo.add(lblintentos3);
					lblintentos3.setText("Intentos: 14");
					lblintentos3.setBounds(441, 153, 85, 16);
					lblintentos3.setForeground(new java.awt.Color(128,64,0));
					lblintentos3.setFont(new java.awt.Font("Segoe UI",1,14));
				}
				{
					lblpelotas3 = new JLabel();
					panfondo.add(lblpelotas3);
					lblpelotas3.setText("Pelotas: 6");
					lblpelotas3.setBounds(441, 178, 66, 16);
					lblpelotas3.setForeground(new java.awt.Color(128,64,0));
					lblpelotas3.setFont(new java.awt.Font("Segoe UI",1,14));
				}
				{
					btnatras = new JButton();
					panfondo.add(btnatras);
					btnatras.setText("Atras");
					btnatras.setBounds(186, 282, 94, 36);
					btnatras.setForeground(new java.awt.Color(128,64,0));
					btnatras.setFont(new java.awt.Font("Segoe UI",1,12));
				}
				{
					btnpuntuancion = new JButton();
					panfondo.add(btnpuntuancion);
					btnpuntuancion.setText("Puntuacion");
					btnpuntuancion.setBounds(307, 282, 102, 36);
					btnpuntuancion.setFont(new java.awt.Font("Segoe UI",1,12));
					btnpuntuancion.setForeground(new java.awt.Color(128,64,0));
				}
			}
			pack();
			this.setSize(594, 403);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener action){
		this.btnatras.addActionListener(action);
		this.btnbasico.addActionListener(action);
		this.btnintermedio.addActionListener(action);
		this.btndificil.addActionListener(action);
	    btnpuntuancion.addActionListener(action);
	}


}
